package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 创建订单对象 salon_order
 * 
 * @author 23
 * @date 2022-04-03
 */
public class SalonOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 顾客选择的服务集合
     */
    private List<SalonService> serviceList;

    /** 订单id */
    private Integer orderId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date datetime;

    /** 总金额 */
    @Excel(name = "总金额")
    private String sum;

    /** 发型师 */
    @Excel(name = "发型师")
    private String stafferName1;

    /** 技师 */
    @Excel(name = "技师")
    private String stafferName2;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String paymentStatus;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentWay;

    public void setServiceList(java.util.List<SalonService> serviceList) {
        this.serviceList = serviceList;
    }

    public java.util.List<SalonService> getServiceList() {
        return serviceList;
    }
    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setDatetime(Date datetime) 
    {
        this.datetime = datetime;
    }

    public Date getDatetime() 
    {
        return datetime;
    }
    public void setSum(String sum) 
    {
        this.sum = sum;
    }

    public String getSum() 
    {
        return sum;
    }
    public void setStafferName1(String stafferName1) 
    {
        this.stafferName1 = stafferName1;
    }

    public String getStafferName1() 
    {
        return stafferName1;
    }
    public void setStafferName2(String stafferName2) 
    {
        this.stafferName2 = stafferName2;
    }

    public String getStafferName2() 
    {
        return stafferName2;
    }
    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }
    public void setPaymentWay(String paymentWay) 
    {
        this.paymentWay = paymentWay;
    }

    public String getPaymentWay() 
    {
        return paymentWay;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("datetime", getDatetime())
            .append("sum", getSum())
            .append("stafferName1", getStafferName1())
            .append("stafferName2", getStafferName2())
            .append("paymentStatus", getPaymentStatus())
            .append("paymentWay", getPaymentWay())
            .toString();
    }
}
